package com.wang.service.impl;

import com.wang.entity.Payment;
import com.wang.mapper.PaymentMapper;
import com.wang.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Classname PaymentServiceImpl
 * @Description TODO
 * @Date 2024/2/20 16:07
 * @Created by pc
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentMapper paymentMapper;
    @Override
    public Integer create(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
